package com.bilicraft;
import java.awt.event.*;


import res.Resources;


public class MButtonWebSite extends MButton{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String URL;
	
	public MButtonWebSite (String t, Resources rs, int x, int y){
		super(t,rs,x,y);
	}
	
	public MButtonWebSite (String url, String t, Resources rs, int x, int y){
		super(t,rs,x,y);
		URL = url;
	}
	
	public void mClicked(MouseEvent e){
		try{
			Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + URL);
		}catch(Exception ex){
			
		}
	}

}
